package com.tonson.dao;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.tonson.admin.model.DictEntry;
import com.tonson.common.DefaultAction;

public class LogAction extends DefaultAction {
	
	public String login(){
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
		DictEntry dict = (DictEntry)context.getBean("dict");
		System.out.println(dict.getDictname());
		return ERROR;
	}
}
